var rightService = require('../service/rightService')

module.exports = {
    async getList(req, res) {
        var result = await rightService.getList()
        res.send(result)
    },
    async update(req, res) {
        var result = await rightService.update(req.body)
        res.send(result)
    },
    async delete(req, res) {
        var result = await rightService.delete(req.body)
        res.send(result)
    }
}